package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.vo.CourseTeacherVO;
import com.xuecheng.content.entity.CourseTeacher;
import com.xuecheng.content.entity.CourseTeacherDTO;

import java.util.List;

/**
 * <p>
 * 课程-教师关系表 服务类
 * </p>
 *
 * @author itcast
 * @since 2022-06-24
 */
public interface CourseTeacherService extends IService<CourseTeacher> {

    /**
     *   根据机构id和课程id，查询老师的集合
     * @param courseBaseId
     * @param companyId
     * @return 老师的集合
     */
    List<CourseTeacherVO> queryTeachersByCourseId(Long courseBaseId, Long companyId);


    /**
     *  增
     * @param vo
     * @param companyId
     * @return
     */
    CourseTeacherVO createOrModifyTeacher(CourseTeacherVO vo, Long companyId);

    /**
     *  删
     * @param courseId
     * @param courseBaseId
     * @param companyId
     */
    void removeTeacher(Long courseId, Long courseBaseId, Long companyId);
}
